﻿using System;
using Missbot.Service;
using MongoDB.Bson.Serialization.Attributes;

namespace Missbot.AIModule.Vip
{
    public class VipChargeOrder : DbBaseEntity
    {
        public string UserID { get; set; }

        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime ChargeTime { get; set; } = DateTime.Now;

        public double ChargeAmount { get; set; }

        public int DiamondAmount { get; set; }

        public string Message { get; set; }

        public string OrderID { get; set; }
    }

    public static class VipChargeOrderDA
    {
        public static void Insert(this VipChargeOrder entity)
        {
            MongoService<VipChargeOrder>.Insert(entity);
        }
    }
}